import request from '@/utils/request'

//获取验证码 
export function entranceCode(data) {
  return request({
    url: '/api/entrance/code',
    method: 'post',
	data:data
  })
}
//验证邀请码
export function verification(data) {
  return request({
    url: '/api/entrance/verification',
    method: 'post',
	data:data
  })
}
//注册
export function reg(data) {
  return request({
    url: '/api/entrance/reg',
    method: 'post',
	data:data
  })
}
//登录 
export function login(data){
	return request({
	  url: '/api/entrance/login',
	  method: 'post',
	  data:data
	})
}
//获取用户信息
export function user(data={}) {
  return request({
    url: '/api/entrance/user',
    method: 'post',
	data:data
  })
}
//获取配置信息 
export function configs(data={}) {
  return request({
    url: '/api/entrance/configs',
    method: 'post',
	data:data
  })
}
//编辑用户信息 
export function edit(data={}) {
  return request({
    url: '/api/entrance/edit',
    method: 'post',
	data:data
  })
}
//配置信息 
export function getAllConfig(data={}) {
  return request({
    url: '/api/entrance/getAllConfig',
    method: 'post',
	data:data
  })
}
//获取协议规则
export function getRules(data={}) {
  return request({
    url: '/api/entrance/getRules',
    method: 'post',
	data:data
  })
}
//获取帮助
export function getHelps(data={}) {
  return request({
    url: '/api/entrance/getHelps',
    method: 'post',
	data:data
  })
}
//获取帮助详情
export function getHelpDetail(data={}) {
  return request({
    url: '/api/entrance/getHelpDetail',
    method: 'post',
	data:data
  })
}
//注销账户 
export function cancellation(data={}) {
  return request({
    url: '/api/entrance/cancellation',
    method: 'post',
	data:data
  })
}
//商务合作 
export function cooperation(data={}) {
  return request({
    url: '/api/entrance/cooperation',
    method: 'post',
	data:data
  })
}
//参与分红 
export function setBonus(data={}) {
  return request({
    url: '/api/entrance/setBonus',
    method: 'post',
	data:data
  })
}
//我参与的分红 
export function seleAllBonus(data={}) {
  return request({
    url: '/api/entrance/seleAllBonus',
    method: 'post',
	data:data
  })
}
//领取分红 
export function receive(data={}) {
  return request({
    url: '/api/entrance/receive',
    method: 'post',
	data:data
  })
}
//更新收款截图 
export function uploadImg(data={}) {
  return request({
    url: '/api/upload/uploadImg',
    method: 'post',
	data:data
  })
}
//获取收款截图 
export function getCollection(data={}) {
  return request({
    url: '/api/entrance/getCollection',
    method: 'post',
	data:data
  })
}
//分红相关配置 
export function getBonusConfig(data={}) {
  return request({
    url: '/api/entrance/getBonusConfig',
    method: 'post',
	data:data
  })
}
//现金记录 
export function getMoney(data={}) {
  return request({
    url: '/api/entrance/getMoney',
    method: 'post',
	data:data
  })
}
//提现 
export function withdrawal(data={}) {
  return request({
    url: '/api/entrance/withdrawal',
    method: 'post',
	data:data
  })
}
//版本
export function appVersion(data={}) {
  return request({
    url: '/api/entrance/app_version',
    method: 'post',
	data:data
  })
}
//h5地址解析
export function analysisAddress(data={}) {
  return request({
    url: '/api/entrance/analysisAddress',
    method: 'post',
	data:data
  })
}